/*
 * pmod_clp.h
 *
 *  Created on: Mar 12, 2015
 *  Author: 	Abhishek Malik
 *
 *  This header file is a part of the high/low level driver for the PMODCLP (LCD 16x2).
 *  More info about the functions and the driver as a whole is present in the c file
 *  and the report.
 */

#ifndef PMOD_CLP_H_
#define PMOD_CLP_H_

#include <stdio.h>
#include <stdlib.h>
#include "xil_types.h"
#include "xgpio.h"
#include "xparameters.h"

// defines to be used by the c file
#define cursor_shift_right		0x10
#define LCD_CLS_INST			0x1

// declaration of all the functions to be used in the c file
void init_lcd(XGpio * InstPtr);
void lcd_write(XGpio * InstPtr, int dat);
void lcd_write_string(XGpio * InstPtr, char* string, int line_no, int start_pt);
void lcd_cls(XGpio * InstPtr);
void lcd_write_decimal(XGpio * InstPtr, int num, int cursor_loc, int line_no);

#endif /* PMOD_CLP_H_ */
